package xin.marcher.wind.process.api.impl;

import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import xin.marcher.wind.process.api.ProcessManagementApi;
import xin.marcher.wind.process.dto.BizProcessArrangeDTO;
import xin.marcher.wind.process.service.TradePlatformBizService;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@DubboService(version = "1.0.0", interfaceClass = ProcessManagementApi.class, retries = 3)
public class ProcessManagementApiImpl implements ProcessManagementApi {

    @Resource
    private TradePlatformBizService tradePlatformBizService;

    @Override
    public BizProcessArrangeDTO getBizProcessArrange(String bizId) {
        return tradePlatformBizService.getBizProcessArrange(bizId);
    }

    @Override
    public List<BizProcessArrangeDTO> listAllBizProcessArrange() {
        return tradePlatformBizService.listAllBizProcessArrange();
    }

}
